package Stringbuid;

public class StringBuilderDemo {
    public static void main(String[] args) {
        String str="我我我我为java";
        StringBuilder builder=new StringBuilder(str);
        builder.append(",嘎嘎伊拉斯");
        System.out.println(builder);
        builder.replace(7,15,"就是我哈哈哈");
        System.out.println(builder);
        builder.delete(0,7);
        System.out.println(builder);
        builder.insert(0,"嗷嗷");
        System.out.println(builder);
    }
}
